function teacherDay(day){
	$.ajax({
		  type: "POST",
		  url: "/athena/calendar/teacher/day",
		  dataType: 'json',
		  data: { day: day},
		  success : function(json){populate(json);}
		})
}

function populate(json){
	$(document).ready(function() {
		var date = new Date();
		var d = date.getDate();
		var m = date.getMonth();
		var y = date.getFullYear();

		$(json).each(function(){
			this.start = new Date(this.start);
		});
		$('#calendar').fullCalendar({
			header : {
				left : 'prev,next today',
				center : 'title',
				right : 'month,agendaWeek,agendaDay'
			},
			editable : true,
			events : json
		});
	});	
}